/*
 * $Id: TcpSocket.h,v 1.2 2005-11-20 14:34:28 bacon Exp $
 */

#include <xpo/net/Socket.h>
#include <xpo/bas/Object.h>
#include <xp/net/tcp.h>

@interface XpTcpSocket: XpObject
{
	xp_tcp_t handle;
}

+ (XpTcpSocket*) open: (int) mode;
- (int) close;

- (int) connect: (XpTcpAddress*) addr;

- (xp_ssize_t) send: (const void*) data size: (xp_size_t) size;
- (xp_ssize_t) receive: (void*) buf size: (xp_size_t) size;

@end

